package jp.co.takapy.baycity.server.service;

import java.util.Map;

import org.slim3.datastore.Datastore;
import org.slim3.util.BeanUtil;

import com.google.appengine.api.datastore.Transaction;



import jp.co.takapy.baycity.server.model.StationMst;



public class LineRegistTest {

    public StationMst regist(Map<String, Object> input) {

        StationMst data = new StationMst();
        BeanUtil.copy(input, data);

        Transaction tx = Datastore.beginTransaction();
        Datastore.put(input);
        tx.commit();

        return data;

    }

}
